package com.xxxx.comment.constants;

public class RedisConstants {
    public static final String LOGIN_CODE_KEY_PRE = "login:code:";

    public static final Long LOGIN_CODE_TTL = 300L;

    public static final String LOGIN_USER_KEY = "login:token:";

    public static final Long LOGIN_USER_TTL = 36000L;

    public static final Long CACHE_NULL_TTL = 2L;

    public static final Long CACHE_SHOP_TTL = 30L;

    public static final String CACHE_SHOP_KEY = "cache:shop:";

    public static final String CACHE_SHOP_LIST_KEY = "cache:shop:";

    public static final String LOCK_SHOP_KEY = "lock:shop:";

    public static final String LOCK_SECKILL_ORDER_KEY = "lock:seckillOrder:";

    public static final Long LOCK_SHOP_TTL = 10L;

    public static final String BLOG_LIKED_KEY = "blog:liked:";

    public static final String FEED_KEY = "feed:";

    public static final String SHOP_GEO_KEY = "shop:geo:";

    public static final String USER_SIGN_KEY = "sign:";

    public static final String REDIS_LOCK_KEY = "redis:lock:";

    /**
     * 优惠券秒杀的 分布式锁 的全局ID = SECKILL_ORDER_kEY + UserId
     */
    public static final String SECKILL_ORDER_BUSINESS_NAME = "order";

    /**
     * 优惠券秒杀订单的key的前缀
     */
    public static final String SECKILL_ORDER_KEY = "seckill:order:";

    /**
     * 存储优惠券库存的key的前缀
     */
    public static final String SECKILL_STOCK_KEY = "seckill:stock:";

    public static final String FOLLOW_KEY = "follows:";
}
